
# The following MUST be at the top of every Makefile.
TOPDIR ?= ..
include $(TOPDIR)/tools/Makefile.pre

# Modify MODULES to be the list of all modules which must be done
# first before this one (comment out if none).
# Be sure to refer to modules by their regular absolute path name,
# e.g. $(TOPDIR)/foo

# The following will do make in all subdirectories with a Makefile first.
# 	Comment this out if you do not want or need this.
## $(foreach modmakefile,$(wildcard $(MODDIR)/*/Makefile),$(eval MODULES += $(patsubst %/,%,$(dir $(modmakefile)))))

MODULES +=                      \
    $(TOPDIR)/avmerr            \
    $(TOPDIR)/auplay		\
    $(TOPDIR)/hs		\
    $(TOPDIR)/debuglog		\
    $(TOPDIR)/spr               \
    $(TOPDIR)/eventlog		\
    $(TOPDIR)/config		\
    $(TOPDIR)/aumix             \
    $(TOPDIR)/dateTime          \
    $(TOPDIR)/mainthread        \
    $(TOPDIR)/poller            \
    $(TOPDIR)/fdb               \
    $(TOPDIR)/lwip		\
    $(TOPDIR)/hw                \
    $(TOPDIR)/hwReg             \
    $(TOPDIR)/areslib           \
	$(TOPDIR)/uiSipRegService	\
    $(TOPDIR)/zcomStateDispatch

# Modify LIBNAMES to be list of all names of libraries to create
# (comment out if none).
# The names of libraries do NOT include .a extension in this case.
# All libraries created are automatically exported.
LIBNAMES := callCtrl

# For each library name, provide LIB_SRC_<name> giving source files
# The names of libraries do NOT include .a extension in this case.
LIBRARY_SRC_callCtrl :=  \
        callCtrl.c		\
	callCtrlEventLog.c	\
	callHsEvent.c		\
	callHsHelper.c

# For each library name, provide LIB_LIBS_<name> giving other library files
# that should be linked into a program to support this library.
# The names of libraries do NOT include .a extension in this case.
LIBRARY_LIBS_callCtrl := \
    areslib		\
    aumix		\
    debuglog		\
    eventlog		\
    hsmain		\
    hw                  \
    mainthread		\
    poller		\
    spr	                \
	uiSipRegService	\
    zcomStateDispatch

$(eval $(foreach target,$(HANDSET_TARGETS),$(eval LIBRARY_LIBS_$(target)_callCtrl := auplay fdb)))

# List all header files to be exported (installed in other modules)
# (comment out if none).
EXPORT_HEADERS += callCtrl.h

# List all script files to be exported (installed in other modules)
# (comment out if none).
## EXPORT_SCRIPTS += 

# Modify PROGRAMS to be list of all names of programs to create
# (comment out if none).
# All programs created are automatically exported.
## PROGRAMS_linux := 	

# For each program name, provide PROGRAM_SRC_<name> giving source files
# and provide PROGRAM_LIBS_<name> giving library names (no -l or .a !).
## PROGRAM_SRC_sprtest := 

# For each program name, provide PROGRAM_LIBS_<name> giving
# library files required by name and with NO .a extension.
## PROGRAM_LIBS_sprtest := 

# The following MUST be at the end of every Makefile
include $(TOPDIR)/tools/Makefile.post
